﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="prtedit.aspx.cs" Inherits="weba.prtedit" %>

<%@ Register assembly="C1.Web.Wijmo.Controls.4, Version=4.0.20133.145, Culture=neutral, PublicKeyToken=9b75583953471eea" namespace="C1.Web.Wijmo.Controls.C1Dialog" tagprefix="wijmo" %>

<%@ Register assembly="C1.Web.Wijmo.Controls.4, Version=4.0.20133.145, Culture=neutral, PublicKeyToken=9b75583953471eea" namespace="C1.Web.Wijmo.Controls.C1GridView" tagprefix="wijmo" %>

<%@ Register assembly="C1.Web.Wijmo.Controls.4, Version=4.0.20133.145, Culture=neutral, PublicKeyToken=9b75583953471eea" namespace="C1.Web.Wijmo.Controls.C1Expander" tagprefix="wijmo" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>

        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <wijmo:C1Dialog ID="C1Dialog1" runat="server" AppendTo="body" MaintainVisibilityOnPostback="False" Show="blind" Height="550px" Visible="False" Width="500px">
                    <CollapsingAnimation Option="">
                    </CollapsingAnimation>
                    <ExpandingAnimation Option="">
                    </ExpandingAnimation>
                    <CaptionButtons>
                        <Pin IconClassOff="ui-icon-pin-s" IconClassOn="ui-icon-pin-w" />
                        <Refresh IconClassOn="ui-icon-refresh" />
                        <Minimize IconClassOn="ui-icon-minus" />
                        <Maximize IconClassOn="ui-icon-extlink" />
                        <Close IconClassOn="ui-icon-close" />
                    </CaptionButtons>
                    <Content>
                       <asp:DataList ID="DataList1" runat="server" DataSourceID="SqlDataSource1" RepeatColumns="7">
                            <ItemTemplate>
                                <asp:ImageButton ID="ImageButton4" runat="server" Height="70px" ImageUrl='<%# "Images/"+ Eval("picurl") %>' OnClick="ImageButton1_Click" Width="70px" />
                            </ItemTemplate>
                        </asp:DataList>
                    </Content>
                </wijmo:C1Dialog>

                <asp:Button ID="Button1" runat="server" Text="Button" OnClick="Button1_Click" />
                <wijmo:C1GridView ID="C1GridView1" runat="server" AutogenerateColumns="False" DataKeyNames="id" DataSourceID="LinqDataSource1" GroupAreaCaption="将这里的一列拖去与那一列分组。" LoadingText="载入中...">
                    <Columns>
                       
                        <wijmo:C1TemplateField>

                            <ItemTemplate>
                                <asp:CheckBox ID="CheckBox1" runat="server" />
                                <asp:ImageButton ID="ImageButton5" runat="server" Height="50px" ImageUrl='<%# "Images/"+ Eval("imageUrl") %>' OnClick="ImageButton5_Click" Width="50px" />
                           
                                  </ItemTemplate>

                        </wijmo:C1TemplateField>
                       
                        <wijmo:C1BoundField DataField="id" HeaderText="id" ReadOnly="True" SortExpression="id">
                        </wijmo:C1BoundField>
                        <wijmo:C1BoundField DataField="title" HeaderText="title" SortExpression="title">
                        </wijmo:C1BoundField>
                        <wijmo:C1BoundField DataField="description" HeaderText="description" SortExpression="description">
                        </wijmo:C1BoundField>
                        <wijmo:C1BoundField DataField="price" HeaderText="price" SortExpression="price">
                        </wijmo:C1BoundField>
                        <wijmo:C1BoundField DataField="imageUrl" HeaderText="imageUrl" SortExpression="imageUrl">
                        </wijmo:C1BoundField>
                    </Columns>
                </wijmo:C1GridView>
                <asp:LinqDataSource ID="LinqDataSource1" runat="server" ContextTypeName="weba.sjklqDataContext" EnableDelete="True" EnableInsert="True" EnableUpdate="True" EntityTypeName="" TableName="Item">
                </asp:LinqDataSource>
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:mysjkConnectionString1 %>" SelectCommand="picsnotinitem" SelectCommandType="StoredProcedure"></asp:SqlDataSource>
                <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:mysjkConnectionString1 %>" SelectCommand="getctzwith" SelectCommandType="StoredProcedure"></asp:SqlDataSource>
            </ContentTemplate>
        </asp:UpdatePanel>
        <asp:UpdateProgress ID="UpdateProgress1" runat="server"></asp:UpdateProgress>
    </div>
    </form>
</body>
</html>
